#ifndef _ESP_8266_H
#define _ESP_8266_H

#include "stm32f10x_usart.h"
#include "stm32f10x_gpio.h"
#include "USART.h"


#define ESP8266_Port_RES		GPIOB
#define ESP8266_Pin_RES			GPIO_Pin_9
#define ESP8266_RCCCLK_RES		RCC_APB2Periph_GPIOB

#define ESP8266_Port_EN			GPIOB
#define ESP8266_Pin_EN			GPIO_Pin_8
#define ESP8266_RCCCLK_EN		RCC_APB2Periph_GPIOB

#define ESP8266_Port_TX			GPIOB
#define ESP8266_Pin_TX			GPIO_Pin_10
#define ESP8266_RCCCLK_TX		RCC_APB2Periph_GPIOB

#define ESP8266_Port_RX			GPIOB
#define ESP8266_Pin_RX			GPIO_Pin_11
#define ESP8266_RCCCLK_RX		RCC_APB2Periph_GPIOB

#define ESP8266_USART  			USART3
#define ESP8266_USART_RCCclk  	RCC_APB1Periph_USART3	


void ESP_8266_Init(uint32_t BTR);


#endif

